<!-- jQuery -->
<script type="text/javascript" src="/jn-report/resources/jquery/jquery-2.1.1.min.js"></script>
<script src="/jn-report/resources/jquery/jquery-migrate-1.1.0.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="/jn-report/resources/AdminLTE/bower_components/jquery-ui/jquery-ui.min.js"></script>

<script src="/jn-report/resources/jquery-ui-1.9.2.custom/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="/jn-report/resources/jquery-ui-1.9.2.custom/development-bundle/ui/jquery.ui.core.js"></script>
<script src="/jn-report/resources/jquery-ui-1.9.2.custom/development-bundle/ui/jquery.ui.widget.js"></script>
<script src="/jn-report/resources/jquery-ui-1.9.2.custom/development-bundle/ui/jquery.ui.mouse.js"></script>
<script src="/jn-report/resources/jquery-ui-1.9.2.custom/development-bundle/ui/jquery.ui.draggable.js"></script>
<script src="/jn-report/resources/jquery-ui-1.9.2.custom/development-bundle/ui/jquery.ui.position.js"></script>
<script src="/jn-report/resources/jquery-ui-1.9.2.custom/development-bundle/ui/jquery.ui.resizable.js"></script>
<script src="/jn-report/resources/jquery-ui-1.9.2.custom/development-bundle/ui/jquery.ui.button.js"></script>
<script src="/jn-report/resources/jquery-ui-1.9.2.custom/development-bundle/ui/jquery.ui.dialog.js"></script>


<!-- Bootstrap 3.3.7 --><script src="/jn-report/resources/AdminLTE/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Bootstrap 3.3.7 --><script src="/jn-report/resources/AdminLTE/bower_components/bootstrap/js/scrollspy.js"></script>

<!-- select2 -->
<script src="/jn-report/resources/AdminLTE/bower_components/select2/dist/js/select2.full.min.js"></script>
<!-- jqGrid -->
<!--<script src="/jn-report//resources/Guriddo-jqGrid-5.0.0/js/jquery.jqGrid.min.js"></script>-->
<!--<script src="/jn-report//resources/jquery.jqGrid-4.4.1/js/i18n/grid.locale-cn.js"></script>-->
<!-- dateTime-->
<!--<script src="/jn-report//resources/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>-->
<!-- messenger-->
<!--<script src="/jn-report//resources/HubSpot-messenger/build/js/messenger.min.js"></script>-->
<!-- AdminLTE App -->
<script src="/jn-report//resources/AdminLTE/dist/js/adminlte.min.js"></script>
<!-- sumoselect -->
<script src="/jn-report/resources/sumoselect/jquery.sumoselect.min.js"></script>
<!-- jquery-form -->
<script src="/jn-report/resources/jquery-form/jquery-form.js"></script>
<!-- typeahead -->
<!--<script src="/jn-report//resources/bootstrap-typeahead/bootstrap3-typeahead.min.js"></script>-->
<!-- bootbox -->
<script src="/jn-report//resources/bootBox/bootbox.js"></script>
<!-- iCheck 1.0.1 -->
<!--<script src="/jn-report//resources/AdminLTE/plugins/iCheck/icheck.min.js"></script>-->
 <!--date-range-picker -->
<!--<script src="/jn-report//resources/AdminLTE/plugins/daterangepicker/moment.min.js"></script>-->
<!--<script src="/jn-report//resources/AdminLTE/plugins/daterangepicker/daterangepicker.js"></script>-->
<!--<script src="/jn-report//resources/viewerjs-master/viewer.js"></script>-->
<!--<script type="text/javascript" src="/jn-report//resources/cropper-master/cropper.js"></script>-->
<!-- pagination -->
<!--<script type="text/javascript" src="/jn-report//resources/pagination/jquery.pagination.js"></script>-->
<!--<script type="text/javascript" src="/jn-report//resources/jquery.scrollTo/jquery.scrollTo.min.js"></script>-->
<!-- common fnc -->
<script src="/jn-report//js/com/comFunction.js"></script>
<script src="/jn-report//js/com/comDialog.js"></script>
<script src="/jn-report//js/com/showMessenger.js"></script>
<script src="/jn-report//js/com/SelectDom.js"></script>
<!--<script src="/jn-report//js/com/Regex.js"></script>-->
<script src="/jn-report/js/com/excel.js"></script>
<script src="/jn-report/resources/Echarts/echarts.js"></script>
<script src="/jn-report/js/dialog/showMessenger.js"></script>
<script src="/jn-report/js/dialog/showMessengerDialog.js"></script>
<!--<script src="/jn-report//js/loading/showLoading.js"></script>-->

<!--图片缩放-->
<!--<script type="text/javascript" src="/jn-report//resources/jquery-iviewer/jquery.iviewer.js" ></script>-->
<!--导入文件-->
<script src="/jn-report/resources/jQuery-File-Upload-9.19.1/js/jquery.fileupload.js"></script>
<!-- js Collection 工具类 -->
<!--<script src="/jn-report//resources/collectionjs/collections.min.js"></script>-->
<!-- lay date -->
<script src="/jn-report/resources/layDate-v5.0.9/laydate/laydate.js"></script>

<!-- pqGrid -->
<script src="/jn-report/resources/paramquery-pro/pqgrid.min.js" type="text/javascript"></script>
<script src="/jn-report/resources/FileSaver/FileSaver.min.js" type="text/javascript"></script>
<script src="/jn-report/resources/jszip/jszip.js"></script>
<script src="/jn-report/js/com/pqGrid.js" type="text/javascript"></script>
<script src="/jn-report/js/com/layuiGrid.js" type="text/javascript"></script>

<!-- layui -->
<script src="/jn-report/resources/layui-v2.4.5/layui/layui.js" charset="utf-8"></script>


<script>
    $("#labName").text(document.getElementsByTagName("title")[0].text);
//    $.jgrid.defaults.width = 780;
//    $.jgrid.defaults.styleUI = 'Bootstrap';
    if(window.innerWidth <=  1920){
        $("#top").attr("style","width:1853px");
        $("#lower").attr("style","width:1853px");
        $("#maxDiv").attr("style","width:1853px;min-width:1853px");
    }else {
        $("#top").attr("style","width:"+ window.innerWidth - 50 +"px");
        $("#lower").attr("style","width:"+ window.innerWidth - 50 +"px");
        $("#maxDiv").attr("style","width:" + window.innerWidth - 50 + "px;min-width:" + window.innerWidth - 50 + "px");
    }
    var winWidth;
    if (window.innerWidth)
        winWidth = window.innerWidth - 50;
    else if ((document.body) && (document.body.clientWidth))
        winWidth = document.body.clientWidth - 50;
    console.log(winWidth);
    $("#maxDiv").attr("style","width:"+winWidth+"px;min-width:"+winWidth+"px;overflow-x:scroll");
    window.onresize = function(){
//      var winWidth;
        if (window.innerWidth)
            winWidth = window.innerWidth - 50;
        else if ((document.body) && (document.body.clientWidth))
            winWidth = document.body.clientWidth - 50;
        console.log(winWidth);
        $("#maxDiv").attr("style","width:"+winWidth+"px;min-width:"+winWidth+"px;overflow-x:scroll");
    };
</script>
